/**
 * Created by Administrator on 2017/7/20.
 */
import {combineReducers} from 'redux'
import {LOGIN, LOGIN_ERROR} from '../actions/login'

function login(state='', action) {
  switch (action.type) {
    case LOGIN:
      return action.token
    default:
      return state
  }
}

const todoApp = combineReducers({
  login
})

export default todoApp



















